package com.sojson.controller.po.param.verify;

import com.sojson.entity.po.PostApply;
import com.sojson.result.Result;
import com.sojson.util.StringUtil;

/**
 * 岗位申请表参数验证
 * 
 * @author liu
 * @date 2021-03-16
 */
public class PostApplyParamVerify {

    /**
     * 单条插入
     * 
     * @param postApply
     * @return
     */
    public static Result<?> apply(PostApply postApply) {
        if (StringUtil.isBlank(postApply.getPostId())) {
            return Result.fail("岗位ID不能为空！");
        }

        return Result.success();
    }

}